import Vue from '@/main.js';


export  function login(userName, password) {
    var path = "/auth/user/login";
    return Vue.$http.post(path, {
        account: userName,
        password: password
      })
      .then((res) => {
          return res.data;
      })
      .catch(function (error) {
        console.log(error);
      });
  }
